<?php
/**
 * 注册树模式
 */

interface Node
{
    public function node();
}

class Register
{
    public static $_DI;
    public static function get(string $key)
    {
        return self::$_DI[$key];
    }
    
    public static function set($key,Node $value)
    {
        self::$_DI[$key] = $value;
    }
    
    public static function _unset($key)
    {
        unset(self::$_DI[$key]);
    }
}